import Layout from '@/layouts/index.vue';
import ListIcon from '@/assets/assets-slide-list.svg';
import FormIcon from '@/assets/assets-slide-form.svg';
import DetailIcon from '@/assets/assets-slide-detail.svg';

export default [
  {
    path: '/order',
    name: 'order',
    component: Layout,
    redirect: '/order/base',
    meta: { title: '交易', icon: 'view-list' ,hidden:true},
    children: [
      {
        path: 'base',
        name: 'OrderBase',
        component: () => import('@/pages/order/base/index.vue'),
        meta: { title: '交易订单' },
      },
      {
        path: 'refund',
        name: 'RefundOrder',
        component: () => import('@/pages/order/refund/index.vue'),
        meta: { title: '退款管理' },
      },
      {
        path: 'detail',
        name: 'OrderDetail',
        component: () => import('@/pages/order/detail/index.vue'),
        meta: { title: '订单详情' ,hidden:true},
      },
    ],
  },
  {
    path: '/marketing',
    name: 'marketing',
    component: Layout,
    redirect: '/marketing/base',
    meta: { title: '营销', icon: 'gift',hidden:true },
    children: [
      {
        path: 'base',
        name: 'MarketingBase',
        component: () => import('@/pages/marketing/base/index.vue'),
        meta: { title: '现金红包' },
      },
      // {
      //   path: 'favor',
      //   name: 'MarketingFavor',
      //   component: () => import('@/pages/marketing/favor/index.vue'),
      //   meta: { title: '代金券' },
      // },
      // {
      //   path: 'busifavor',
      //   name: 'MarketingBusiFavor',
      //   component: () => import('@/pages/marketing/busifavor/index.vue'),
      //   meta: { title: '商家券' },
      // },
      // {
      //   path: 'partnerships',
      //   name: 'MarketingPartnerships',
      //   component: () => import('@/pages/marketing/partnerships/index.vue'),
      //   meta: { title: '委托营销' },
      // },
      // {
      //   path: 'paygiftactivity',
      //   name: 'MarketingPayGiftActivity',
      //   component: () => import('@/pages/marketing/paygiftactivity/index.vue'),
      //   meta: { title: '支付有礼' },
      // },
    ],
  },
  {
    path: '/capital',
    name: 'capital',
    component: Layout,
    redirect: '/capital/base',
    meta: { title: '资金', icon: 'money-circle',hidden:true },
    children: [
      {
        path: 'base',
        name: 'CapitalBase',
        component: () => import('@/pages/capital/base/index.vue'),
        meta: { title: '转帐付款' },
      },
      // {
      //   path: 'step',
      //   name: 'FormStep',
      //   component: () => import('@/pages/form/step/index.vue'),
      //   meta: { title: '平台分账' },
      // },
    ],
  },
  {
    path: '/settings',
    name: 'settings',
    component: Layout,
    redirect: '/settings/base',
    meta: { title: '设置', icon: 'setting',hidden:true },
    children: [
      {
        path: 'payment',
        name: 'PaymentSettings',
        component: () => import('@/pages/settings/base/index.vue'),
        meta: { title: '支付设置' },
      },

      {
        path: 'member',
        name: 'SysMember',
        component: () => import('@/pages/member/index.vue'),
        meta: { title: '成员管理' },
      },
    ],
  },
  {
    path: '/log',
    name: 'log',
    component: Layout,
    redirect: '/log/base',
    meta: { title: '日志', icon: 'browse',hidden:true },
    children: [
      {
        path: 'base',
        name: 'LogBase',
        component: () => import('@/pages/log/base/index.vue'),
        meta: { title: '系统日志' },
      },
      // {
      //   path: 'step',
      //   name: 'FormStep',
      //   component: () => import('@/pages/form/step/index.vue'),
      //   meta: { title: '操作日志' },
      // },
    ],
  },
{
    path: '/complaints',
    name: 'complaints',
    component: Layout,
    redirect: '/complaints/base',
    meta: { title: '其它', icon: ListIcon,hidden:true },
    children: [
      {
        path: 'base',
        name: 'ComplaintsBase',
        component: () => import('@/pages/complaints/base/index.vue'),
        meta: { title: '消费者投诉' },
      },
      {
        path: 'card',
        name: 'ListCard',
        component: () => import('@/pages/list/card/index.vue'),
        meta: { title: '卡片列表页' },
      },
      {
        path: 'filter',
        name: 'ListFilter',
        component: () => import('@/pages/list/filter/index.vue'),
        meta: { title: '筛选列表页' },
      },
      {
        path: 'tree',
        name: 'ListTree',
        component: () => import('@/pages/list/tree/index.vue'),
        meta: { title: '树状筛选列表页' },
      },
    ],
  },
  {
    path: '/list',
    name: 'list',
    component: Layout,
    redirect: '/list/base',
    meta: { title: '列表页', icon: ListIcon, hidden:true  },
    children: [
      {
        path: 'base',
        name: 'ListBase',
        component: () => import('@/pages/list/base/index.vue'),
        meta: { title: '基础列表页' },
      },
      {
        path: 'card',
        name: 'ListCard',
        component: () => import('@/pages/list/card/index.vue'),
        meta: { title: '卡片列表页' },
      },
      {
        path: 'filter',
        name: 'ListFilter',
        component: () => import('@/pages/list/filter/index.vue'),
        meta: { title: '筛选列表页' },
      },
      {
        path: 'tree',
        name: 'ListTree',
        component: () => import('@/pages/list/tree/index.vue'),
        meta: { title: '树状筛选列表页' },
      },
    ],
  },
  {
    path: '/form',
    name: 'form',
    component: Layout,
    redirect: '/form/base',
    meta: { title: '表单页', icon: FormIcon , hidden:true},
    children: [
      {
        path: 'base',
        name: 'FormBase',
        component: () => import('@/pages/form/base/index.vue'),
        meta: { title: '基础表单页' },
      },
      {
        path: 'step',
        name: 'FormStep',
        component: () => import('@/pages/form/step/index.vue'),
        meta: { title: '分步表单页' },
      },
    ],
  },
  {
    path: '/detail',
    name: 'detail',
    component: Layout,
    redirect: '/detail/base',
    meta: { title: '详情页', icon: DetailIcon , hidden:true  },
    children: [
      {
        path: 'base',
        name: 'DetailBase',
        component: () => import('@/pages/detail/base/index.vue'),
        meta: { title: '基础详情页' },
      },
      {
        path: 'advanced',
        name: 'DetailAdvanced',
        component: () => import('@/pages/detail/advanced/index.vue'),
        meta: { title: '多卡片详情页' },
      },
      {
        path: 'deploy',
        name: 'DetailDeploy',
        component: () => import('@/pages/detail/deploy/index.vue'),
        meta: { title: '数据详情页' },
      },
      {
        path: 'secondary',
        name: 'DetailSecondary',
        component: () => import('@/pages/detail/secondary/index.vue'),
        meta: { title: '二级详情页' },
      },
    ],
  },
  {
    path: '/result',
    name: 'result',
    component: Layout,
    redirect: '/result/success',
    meta: { title: '结果页', icon: 'check-circle', hidden:true },
    children: [
      {
        path: 'success',
        name: 'ResultSuccess',
        component: () => import('@/pages/result/success/index.vue'),
        meta: { title: '成功页' },
      },
      {
        path: 'fail',
        name: 'ResultFail',
        component: () => import('@/pages/result/fail/index.vue'),
        meta: { title: '失败页' },
      },
      {
        path: 'network-error',
        name: 'ResultNetworkError',
        component: () => import('@/pages/result/network-error/index.vue'),
        meta: { title: '网络异常' },
      },
      {
        path: '403',
        name: 'Result403',
        component: () => import('@/pages/result/403/index.vue'),
        meta: { title: '无权限' },
      },
      {
        path: '404',
        name: 'Result404',
        component: () => import('@/pages/result/404/index.vue'),
        meta: { title: '访问页面不存在页' },
      },
      {
        path: '500',
        name: 'Result500',
        component: () => import('@/pages/result/500/index.vue'),
        meta: { title: '服务器出错页' },
      },
      {
        path: 'browser-incompatible',
        name: 'ResultBrowserIncompatible',
        component: () => import('@/pages/result/browser-incompatible/index.vue'),
        meta: { title: '浏览器不兼容页' },
      },
      {
        path: 'maintenance',
        name: 'ResultMaintenance',
        component: () => import('@/pages/result/maintenance/index.vue'),
        meta: { title: '系统维护页' },
      },
    ],
  },
];
